package com.zhxy.manager.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Song {
    private int id;
    @ExcelProperty("歌曲名")
    private String name;
    @ExcelProperty("演唱者")
    private String author;
    @ExcelProperty("上线时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接受日期参数
    private Date ctime ;

}
